package cn.tedu.spring.life;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestLife {
    public static void main(String[] args) {
        //Ctrl + Shift + Alt + c
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.life");
        Life life = context.getBean(Life.class);
        //4.开发者使用阶段
        System.out.println("4.开发者使用阶段");
        //5.关闭IoC容器:IoC容器关闭时所有的Bean对象才会销毁;
        context.close();
    }
}
